export default {
    namespaced: true,
    state:{
        form : {
            templte_id : '',
            template_image : '',
            cmat_is_cloud_service : '0'
        },
        nowTemplateData : {

        },
        usedTemplateData : [

        ]
    },
    mutations:{
       updateNowTemplateData(state,data){
           state.nowTemplateData = data;
       },
       clearForm(state){
           state.form = {
            templte_id : '',
            template_image : ''
           }
           state.nowTemplateData = {};
       },
       updateUsedTemplateData(state,data){
           state.usedTemplateData = data;
       }
    }   
  }